"""
数据源路由层

提供智能路由功能，根据请求特征和数据源能力动态选择最优数据源。

核心组件：
- DataSourceRouter: 核心路由器
- RoutingStrategy: 路由策略抽象
- CapabilityRegistry: 能力注册表

主要功能：
1. 基于能力的智能路由
2. 多策略路由支持（优先级、轮询、负载均衡等）
3. 故障转移和降级
4. 性能监控和统计

作者: RedFire Team
创建日期: 2025-10-06
版本: v1.0
"""

from .router import DataSourceRouter
from .strategy import (
    RoutingStrategy,
    RoutingContext,
    RoutingResult,
    RoutingPriority,
    CompositeRoutingStrategy,
    create_routing_context
)
from .registry import CapabilityRegistry
from .strategies import (
    PriorityRoutingStrategy,
    CapabilityBasedRoutingStrategy
)

__all__ = [
    # 核心组件
    "DataSourceRouter",
    "RoutingStrategy",
    "RoutingContext",
    "RoutingResult",
    "RoutingPriority",
    "CompositeRoutingStrategy",
    "CapabilityRegistry",
    
    # 路由策略
    "PriorityRoutingStrategy",
    "CapabilityBasedRoutingStrategy",
    
    # 工具函数
    "create_routing_context",
]

__version__ = "1.0.0"
__author__ = "RedFire Team"
